Carbon


CountComponentInstances

Header: Components.h Carbon status: Supported

Determines the number of open connections being managed by a specified component.

SInt32 CountComponentInstances (
    Component aComponent
);
aComponent

The component for which you want a count of open connections. You can use a component instance here, but you must coerce the data type appropriately.

function result

The number of open connections for the specified component.0

DISCUSSION

This function can be useful if you want to restrict the number of connections for your component or if your component needs to perform special processing based on the number of open connections.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/6/2000)